

def apply_script(protocol, connection, config):
    class GrenadeConnection(connection):
        def on_grenade(self, time_left):
            if not self.admin:
                return False
            return connection.on_grenade(self, time_left)
    return protocol, GrenadeConnection